package 创建者模式.建造者模式.Demo1;
//指挥者
public class Director {
    //生匿名builder类型的变量
    private Builder builder;

    public Director(Builder builder){
        this.builder=builder;
    }

    //组装自行车的功能
    public Bike construct(){
        builder.builderSeat();
        builder.builderFrame();
        return builder.creatBike();
    }
}
